package stringdemo;

public class StringDemo8 {
    public static void main(String[] args) {
        String phoneNumber = "17586620817";

        String start = phoneNumber.substring(0, 3);

        String end = phoneNumber.substring(7);

        String result = start + "****" + end;

        System.out.println(result);
    }
}
